<template>
  <div id="app">
    <div class="app_header">
      <i class="iconfont">&#xe68e;</i>
      <p>饿了么</p>
      <div>
        <p>关闭</p>
        <i class="iconfont"> &#xe616;</i>
      </div>
    </div>
    <div id="nav">
      <router-link to="/">点菜</router-link>
      <router-link to="/about">评价</router-link>
      <router-link to="/merchant">商家</router-link>
    </div>
    <div class="app_footer">
      <router-view />
    </div>
    <Alterbox />
  </div>
</template>
<script>
import Alterbox from "./components/app_footer.vue";
export default {
  components: {
    Alterbox,
  },
};
</script>

<style lang="scss" scoped>
.app_header {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  > div {
    display: flex;
    justify-content: space-around;
    align-items: center;
    p {
      margin-right: 10px;
    }
  }
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  position: relative;
}

#nav {
  width: 100%;
  height: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  .router-link-exact-active {
    padding-bottom: 10px;
    border-bottom: 1px solid blue;
    font-weight: 900;
  }
}
.app_footer {
  width: 100%;
  height: calc(100% - 100px);
}
</style>
